# 请将下面的json对象保存到文件,并再次读取，后将spc字段值改成"喷火"
#
# myjson = {"name": "汤姆", "city": "火城", "age": 6, "spc": None}
import json

myjson = {"name": "汤姆", "city": "火城", "age": 6, "spc": None}

with open("myjson.json", "w", encoding='utf-8') as fs:
    json.dump(myjson, fs, ensure_ascii=False)

with open("myjson.json", "r",encoding='utf-8') as fs:
    file_json = json.load(fs)
    file_json["spc"] = "喷火"
    print(file_json)